#ifndef CACHE_H
#define CACHE_H

#include <QObject>
#include <QHash>
#include <QString>
#include <QList>

class Cache : public QObject, public QHash< QString, QList<QObject*> >
{
    Q_OBJECT
public:
    explicit Cache(QObject *parent = 0);
    void set(QString key, QList<QObject*> val);
    QList<QObject*> get(QString key);
    void append(QString key, QObject* val);
    void clear();

private:
    QHash<QString, QObject*> objectsContainers;
};

#endif // CACHE_H
